//
//  CViewController.swift
//  TestPresenting
//
//  Created by 逸风 on 2022/6/16.
//

import UIKit

class CViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = .systemPink
        // Do any additional setup after loading the view.
    }
    
    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        
    }
    

    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        super.touchesBegan(touches, with: event)

        print((self.presentingViewController as? UINavigationController) as Any)
        print((self.presentingViewController as? UINavigationController)?.viewControllers.first as Any)
    }

}
